package com.fyh.feign.fallback;

import com.fyh.constant.MessageConstant;
import com.fyh.entity.common.Result;
import com.fyh.feign.UserJobFeignClient;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class UserJobFeignClientFallback implements UserJobFeignClient {

    @Override
    public Result<Map<String, List<String>>> getTagList() {
        System.out.println(MessageConstant.GET_TAG_LIST_FAILED);
        throw new RuntimeException(MessageConstant.GET_TAG_LIST_FAILED);
    }
}
